<template>
  <div>
    <el-form ref="form" :model="form" label-width="150px">
      <el-row>
        <el-col :span="12">
          <el-form-item label="资产数据字段">
            <!-- <el-input
              readonly
              v-nulltext
              v-model="form.SYS_ASSET_A1_160"
            ></el-input> -->
            {{ form.SYS_ASSET_A1_160 }}
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="中文名称">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_50"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="列表显示长度">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_20">
              <template slot="append">.px</template>
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="列表字段排序">
            <el-input-number
              v-nulltext
              v-model="form.SYS_ASSET_A1_30"
              class="vW"
            ></el-input-number>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="是否有效">
            <el-select v-nulltext v-model="form.SYS_ASSET_A1_40" class="vW">
              <el-option label="是" value="1"></el-option>
              <el-option label="否" value="0"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="关联表名">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_60"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="关联字段名">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_70"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="关联表显示名">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_80"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="关联表查询条件">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_90"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="关联表扩展显示字段">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_100"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="关联表扩展显示中文">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_110"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="是否列表显示">
            <el-select v-nulltext v-model="form.SYS_ASSET_A1_120" class="vW">
              <el-option label="是" value="1"></el-option>
              <el-option label="否" value="0"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="是否编辑页面显示">
            <el-select v-nulltext v-model="form.SYS_ASSET_A1_130" class="vW">
              <el-option label="是" value="1"></el-option>
              <el-option label="否" value="0"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="字段分组名称">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_140"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="编辑页面字段排序">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_150"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="编辑控件类型">
            <el-select v-nulltext v-model="form.SYS_ASSET_A1_170" class="vW">
              <el-option label="文本" value="Text"></el-option>
              <el-option label="数字" value="Int"></el-option>
              <el-option label="日期" value="Date"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="编辑控件配置">
            <el-input v-nulltext v-model="form.SYS_ASSET_A1_180"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12"> </el-col>
      </el-row>

      <el-form-item style="text-align:center" label-width="0">
        <el-button @click="onSave" type="primary">保存</el-button>
        <el-button @click="close">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { SysAssetA1 } from "@/api";
export default {
  data() {
    return {
      form: {},
      thisDialog: {}
    };
  },
  //外部属性
  props: {},
  //内部方法
  methods: {
    initPage() {},
    //关闭
    close() {
      this.thisDialog.close();
    },
    async onSave() {
      let res = await SysAssetA1.Save(this.form);
      res.strMS && this.$message(res.strMS);
      this.thisDialog.$emit("onSysAssetA1Save", res, this.form);
      res.MsRbool && this.close();
    }
  },
  //组件
  components: {},
  //初始化 异步加async await
  mounted() {
    this.initPage();
  },
  //计算属性
  computed: {},
  //监视
  watch: {}
};
</script>

<style></style>
